<%@ page pageEncoding="UTF-8" contentType="text/html; charset=utf-8"  %>
<%
	String id = request.getParameter("id");
	org.languageguide.readings.Reading reading = new org.languageguide.readings.ReadingImpl(id);
	
%>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript">
	var id = <%= id %>;
	var times = new Array();
</script>
</head>
<body onkeydown="keyevent(event)" onLoad="init()">
<h2><%= reading.getTitle() %></h2>
Status: <%= reading.getStatus()  %>
 
<%	if (reading.getStatus().equals("fine-tuning")){  %>
		<a href="/user/readings/sound2.jsp?id=<%=  id  %>">Fine Tune Sound Integration</a>
<%	}
	else if (reading.getStatus().equals("sound-integrated")){  %>
		<a href="/user/readings/sound2.jsp?id=<%=  id  %>">Adjust Sound Integration</a>
<%	}
    else if (reading.getStatus().equals("new")){   %>
    		<a href="/user/readings/sound.jsp?id=<%=  id  %>">Sound Integrate</a>
<%	}%>
<%= reading.getText() %>
</html>